﻿using Sgr;
using Sgr.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xunit.Sgr.Tests
{
    public class TestDataConnectionStringProvider : IDataConnectionStringProvider
    {
        public IEnumerable<DataConnectionString> LoadDataConnectionStrings()
        {
            return new DataConnectionString[]
            {
                new DataConnectionString(
                    Constant.DEFAULT_DATABASE_SOURCE_NAME,
                    DatabaseType.MySql,
                   "Server=localhost;Port=3306;Database=sgr-test;User Id=root;Password=1qaz@WSX;CharSet=utf8mb4;UseAffectedRows=true;ConnectionTimeout=30;DefaultCommandTimeout=30;Pooling=true;MinimumPoolSize=1;MaximumPoolSize=100;",
                    Array.Empty<string>()),
                new DataConnectionString(
                    "UPMS_DATABASE",
                    DatabaseType.MySql,
                   "Server=localhost;Port=3306;Database=sgr-test;User Id=root;Password=1qaz@WSX;CharSet=utf8mb4;UseAffectedRows=true;ConnectionTimeout=30;DefaultCommandTimeout=30;Pooling=true;MinimumPoolSize=1;MaximumPoolSize=100;",
                    Array.Empty<string>())
            };
        }
    }
}